<DIV style="height:4px"></DIV>
<div>
</div>
<style type="text/css">


</style>
<div>
    <?php
    $sql ="select * from dm_loai";
    $data=mysql_query ( $sql);
    echo "<dl>";
    while ($row=mysql_fetch_array($data))
    {

        echo "<dt class='topItemClose' width='185px' >" .$row["tenloai"] ."</dt>"  ;
        echo "<dd>";
        echo "<ul>";
        $sql2="select * from dm_hang";
        $data2 = mysql_query( $sql2);
        while ($row2 = mysql_fetch_array($data2))
        {
            $link="?thamso=xuat&maloai=$row[maloai]&idh=$row2[idh]&tenhang=$row2[tenhang]";
            $sql4="select count(*) from dm_sanpham where idh='".$row2["idh"]."' and maloai='".$row["maloai"]."'";
            $data4 = mysql_query( $sql4);
            while ($row4 = mysql_fetch_row($data4))
                echo "<li class='subItem'  width='15'><a href='$link'>".$row2["tenhang"]." (".$row4[0].")</a></li>";
        }
        echo "</ul>";
        echo "</dd>";
    }
    echo "</dl>";
    ?>
</div>



<!--
<DIV style="height:4px"></DIV>
<div>
 </div>
<div>
    <?php   /*
    $sql ="select * from dm_loai";
        $data=mysql_query ( $sql);
        while ($row=mysql_fetch_array($data))
        {
            echo" <div class='mainDiv'>";
            echo "<div class='topItemClose' width='185px' >".$row["tenloai"]."</div>"  ;
            echo "<div class='dropMenu' >";
            echo "<div class='subMenu' style='display:inline;'>";
            $sql2="select * from dm_hang";
            $data2 = mysql_query( $sql2);
                while ($row2 = mysql_fetch_array($data2))
                {
                    $link="?thamso=xuat&maloai=$row[maloai]&idh=$row2[idh]&tenhang=$row2[tenhang]";
                    $sql4="select count(*) from dm_sanpham where idh='".$row2["idh"]."' and maloai='".$row["maloai"]."'";
                    $data4 = mysql_query( $sql4);
                    while ($row4 = mysql_fetch_row($data4))
            echo "<div class='subItem'  width='15'><a href='$link'>".$row2["tenhang"]." (".$row4[0].")</a></div>";
                }
            echo "</div>";
            echo "</div>";
            echo "</div>";
        }
    */?>
</div>
-->